SC_objectCollision
SYNTAX
return float=SC_objectCollision ( obj1, obj2 )
-obj1: an object you want to check collision against
-obj2: the other object you want to check it against (0 to check against all)
returns: if obj2=0 then it returns the number of the object collided with
if checking two specific objects, returns 1 if collision occurs.
returns 0 if no collision occured
Replaces dbp built in Object Collision() command.
Will check if obj1 is intersecting with obj2 (or any object if obj2=0)
Objects setup as boxes or spheres are counted as solid, so any object inside
intersects them. Objects setup as polygon or complex are counted as hollow
so an object must be touching a polygon to count as intersecting.
This command does not return any other information about the collision, it's
normal or point of contact.
RELATED INFO
Collision Commands Menu
Index